CVE-2022-31038
XSS vulnerability in repository issue list in Gogs
Description
Gogs is an open source self-hosted Git service. In versions of gogs prior to 0.12.9 `DisplayName` does not filter characters input from users, which leads to an XSS vulnerability when directly displayed in the issue list. This issue has been resolved in commit 155cae1d which sanitizes `DisplayName` prior to display to the user. All users of gogs are advised to upgrade. Users unable to upgrade should check their users' display names for malicious characters.
INFO
Published Date :
June 9, 2022, 5:15 p.m.
Last Modified :
Nov. 21, 2024, 7:03 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 2.0 | LOW | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | 
Public PoC/Exploit Available at Github
                                            CVE-2022-31038 has a 1 public
                                            PoC/Exploit available at Github.
                                            Go to the Public Exploits tab to see the list.
                                        
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2022-31038.
                                        
| URL | Resource | 
|---|---|
| https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee | Patch Third Party Advisory | 
| https://github.com/gogs/gogs/pull/7009 | Issue Tracking Third Party Advisory | 
| https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2 | Issue Tracking Third Party Advisory | 
| https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee | Patch Third Party Advisory | 
| https://github.com/gogs/gogs/pull/7009 | Issue Tracking Third Party Advisory | 
| https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2 | Issue Tracking Third Party Advisory | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2022-31038 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2022-31038
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
🍆 My GitHub Profile
Go JavaScript
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2022-31038 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2022-31038 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            CVE Modified by af854a3a-2127-422b-91ae-364da2661108Nov. 21, 2024 Action Type Old Value New Value Added Reference https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee Added Reference https://github.com/gogs/gogs/pull/7009 Added Reference https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2 
- 
                            CVE Modified by [email protected]May. 14, 2024 Action Type Old Value New Value 
- 
                            Initial Analysis by [email protected]Jun. 17, 2022 Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:M/Au:S/C:N/I:P/A:N) Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Changed Reference Type https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee No Types Assigned https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee Patch, Third Party Advisory Changed Reference Type https://github.com/gogs/gogs/pull/7009 No Types Assigned https://github.com/gogs/gogs/pull/7009 Issue Tracking, Third Party Advisory Changed Reference Type https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2 No Types Assigned https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2 Issue Tracking, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* versions up to (excluding) 0.12.9 
Vulnerability Scoring Details
Base CVSS Score: 5.4
Base CVSS Score: 3.5
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.25 }} -0.09%
score
0.48251
percentile
 
                         
                         
                         
                                             
                                            